const routes = [
//     {
//     name: "Home",
//     path: "/",
//     component: () => import("../pages/Home.vue")
// },
    {
        name: "Login",//和Login.vue 中别名相同
        //配置访问路径 Login登录页面
        // component: () => import('../pages/Login.vue') 实际的资源路径
        path: "/",
        component: () => import('../Invoicing/Login.vue')
    },
    {
        name: "Function",
        path: "/function",
        component: () => import('../Invoicing/Function.vue'),
        children: [
            {
                name: "Home",
                path: "/home",
                component: () => import('../Invoicing/Home.vue')
            },
            {
                name: "earth",
                path: "/earth",
                component: () => import('../Invoicing/earth.vue')
            },
            {
                name: "SQE",
                path: "/sqe",
                component: () => import('../Invoicing/SQE.vue')
            }, {
                name: "CustomerManagement",
                path: "/customerManagement",
                component: () => import('../Invoicing/CustomerManagement.vue')
            }, {
                name: "PurchaseReceipt",
                path: "/purchaseReceipt",
                component: () => import('../Invoicing/PurchaseReceipt.vue')
            }, {
                name: "PurchaseInformationQuery",
                path: "/purchaseInformationQuery",
                component: () => import('../Invoicing/PurchaseInformationQuery.vue')
            }, {
                name: "SalesIssue",
                path: "/salesIssue",
                component: () => import('../Invoicing/SalesIssue.vue')
            }, {
                name: "SalesInformationQuery",
                path: "/salesInformationQuery",
                component: () => import('../Invoicing/SalesInformationQuery.vue')
            }, {
                name: "Stock",
                path: "/stock",
                component: () => import('../Invoicing/Stock.vue')
            }, {
                name: "SalesStatistics",
                path: "/salesStatistics",
                component: () => import('../Invoicing/SalesStatistics.vue')
            }, {
                name: "MonthlySalesStatistics",
                path: "/monthlySalesStatistics",
                component: () => import('../Invoicing/MonthlySalesStatistics.vue')
            }, {
                name: "userManagement",
                path: "/userManagement",
                component: () => import('../Invoicing/userManagement.vue')
            }, {
                name: "RoleManagement",
                path: "/roleManagement",
                component: () => import('../Invoicing/RoleManagement.vue')
            }, {
                name: "ChangePassword",
                path: "/changePassword",
                component: () => import('../Invoicing/ChangePassword.vue')
            }, {
                name: "Journal",
                path: "/journal",
                component: () => import('../Invoicing/Journal.vue')
            },
            {
                name: "file",
                path: "/file",
                component: () => import('../Invoicing/file.vue')
            },
        ]
    }
];
export default routes;